<?php session_start();
if($_SESSION['id_tipo_usuario']==1 AND $_SESSION['id_usuario']){
require_once '../framework/fw.php';	
require '../view/abm_camasView.php';
require '../model/Cama.php';



$pagina = new abm_camasView;
$cama = new Cama;
$res=$cama->get_camas();
$pagina->array_registros = $res;

$pagina->Render();
}

else{	session_destroy();
	header("location: clinica.htm");
}
?>